#include <tchar.h>
#include <Windows.h>
#include "../KeyLog/EncryptedFileLogger.h"

int _tmain(int argc, TCHAR* argv[])
{
	if (argc != 2)
		return 1;

	TCHAR destFile[MAX_PATH];
	_stprintf_s(destFile, TEXT("%s_decrypted.log"), argv[1]);
	EncryptedFileLogger::decrypt(argv[1], destFile);

	return 0;
}
